package com.example.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class BOMLinkListVO {
    private String partId;
    private String number;
    private String name;
    private List<BOMLinkListVO> children = new ArrayList<>();


    public void addChildren(BOMLinkListVO bomLinkListVO){

        if(bomLinkListVO!=null){
            children.add(bomLinkListVO);
        }

    }
}
